var Record = /** @class */ (function () {
    function Record(data) {
        this.data = data;
    }
    Record.prototype.isRecent = function () {
        var sevenDaysAgo = Date.now() - 7 * 24 * 60 * 60 * 1000;
        return this.data.createdAt.getTime() >= sevenDaysAgo;
    };
    return Record;
}());
var User = /** @class */ (function () {
    function User() {
        this.id = 1;
        this.createdAt = new Date();
    }
    return User;
}());
var record = new Record(new User());
console.log(record.isRecent());
